package com.ruoyi.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.order.domain.TicketOrderTicketInfo;
import com.ruoyi.order.mapper.TicketOrderTicketInfoMapper;
import com.ruoyi.order.service.ITicketOrderTicketInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 影票订单影票信息Service业务层处理
 *
 * @author ruoyi
 * @date 2020-12-18
 */
@Service
public class TicketOrderTicketInfoServiceImpl extends ServiceImpl<TicketOrderTicketInfoMapper, TicketOrderTicketInfo> implements ITicketOrderTicketInfoService {
    @Autowired
    private TicketOrderTicketInfoMapper ticketOrderTicketInfoMapper;

    /**
     * 查询影票订单影票信息
     *
     * @param id 影票订单影票信息ID
     * @return 影票订单影票信息
     */
    @Override
    public TicketOrderTicketInfo selectTicketOrderTicketInfoById(Long id)
    {
        return ticketOrderTicketInfoMapper.selectTicketOrderTicketInfoById(id);
    }

    /**
     * 查询影票订单影票信息列表
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 影票订单影票信息
     */
    @Override
    public List<TicketOrderTicketInfo> selectTicketOrderTicketInfoList(TicketOrderTicketInfo ticketOrderTicketInfo)
    {
        return ticketOrderTicketInfoMapper.selectTicketOrderTicketInfoList(ticketOrderTicketInfo);
    }

    /**
     * 新增影票订单影票信息
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 结果
     */
    @Override
    public int insertTicketOrderTicketInfo(TicketOrderTicketInfo ticketOrderTicketInfo)
    {
        return ticketOrderTicketInfoMapper.insertTicketOrderTicketInfo(ticketOrderTicketInfo);
    }

    /**
     * 修改影票订单影票信息
     *
     * @param ticketOrderTicketInfo 影票订单影票信息
     * @return 结果
     */
    @Override
    public int updateTicketOrderTicketInfo(TicketOrderTicketInfo ticketOrderTicketInfo)
    {
        return ticketOrderTicketInfoMapper.updateTicketOrderTicketInfo(ticketOrderTicketInfo);
    }

    /**
     * 批量删除影票订单影票信息
     *
     * @param ids 需要删除的影票订单影票信息ID
     * @return 结果
     */
    @Override
    public int deleteTicketOrderTicketInfoByIds(Long[] ids)
    {
        return ticketOrderTicketInfoMapper.deleteTicketOrderTicketInfoByIds(ids);
    }

    /**
     * 删除影票订单影票信息信息
     *
     * @param id 影票订单影票信息ID
     * @return 结果
     */
    @Override
    public int deleteTicketOrderTicketInfoById(Long id)
    {
        return ticketOrderTicketInfoMapper.deleteTicketOrderTicketInfoById(id);
    }
}
